var _mm = require('util/mm.js');

var _pay = {
  // 获取商品列表信息
  pay: function(orderNo, resolve, reject) {
    _mm.request({
      url: _mm.getServerUrl('/order/pay.do'),
      data: {
        orderNo: orderNo
      },
      success: resolve,
      error: reject
    })
  },
  queryStatus: function(orderNo,resolve, reject) {
    _mm.request({
      url: _mm.getServerUrl('/order/query_order_pay_status.do'),
      data: {
        orderNo: orderNo
      },
      success: resolve,
      error: reject
    })
  }
}
module.exports = _pay;